{* Smarty *}
{include file="$template/header.tpl"}

{if ( isset($smarty.session.uid) ) }
<div id="left_column">
  {include file="$template/blocks/main.tpl"}
</div>
<div id="main">
	{include file="$template/$module_tpl"}
</div>
{else}
<div id="login">
	<ul class="primary">
	  <li{if isset($tab1) } class="active"{/if}><a href="/admin/signin">{t}Sign In{/t}</a></li>
	  <li{if isset($tab2) } class="active"{/if}><a href="/admin/recover_password">{t}Password Recovery{/t}</a></li>
	</ul>
	<div id="tabs">
	{include file="$template/$module_tpl"}
	</div>
</div>
{/if}

{include file="$template/footer.tpl"}